{% extends '::Layout.html.twig' %}
{# set linklist = [
    { path: 'bxtr_admin_index', name: 'Accueil de l\'administration' },
    { name: 'Gestion des livres', role:'ROLE_ADMIN', sub:[
        { path: 'bxtr_admin_book_list', name: 'Gestion des livres' },    
        { path: 'bxtr_index', name: 'Gestion des editions' },    
        { path: 'bxtr_admin_category_list', name: 'Gestion des catégories' },    
    ] },
    { name: 'Gestion des utilisateurs', sub:[
        { path: 'bxtr_admin_user_list', name: 'Gestion des utilisateurs', role:'ROLE_ADMIN' },
        { path: 'bxtr_admin_role_list', name: 'Gestion des roles', role:'ROLE_ADMIN' },
    ] },
] #}

{% block navigation %}
        {#{ path: 'bxtr_index', name: 'Gestion du catalogue', role:'ROLE_ADMIN' },#}
    {{ render(controller('BXTRAdminBundle:View:LinkList')) }}
        {# include 'BXTRLayoutBundle:Front:Navigation.html.twig' with {'linklist': linklist}  #}
{% endblock %}

{% block content %}
    
{% endblock %}

{% block footer %}
    {% include 'BXTRLayoutBundle:Front:Footer.html.twig' with { linklist: [
        { path:'bxtr_admin_index', name:'Menu Footer' },
        { path:'bxtr_admin_index', name:'Menu Footer' },
        { path:'bxtr_admin_index', name:'Menu Footer' },
        { path:'bxtr_admin_index', name:'Menu Footer' },
    ] } %}
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script type="text/javascript" src="{{ path('bxtr_admin_js_config') }}"></script>
    {% javascripts 'BXTR/AdminBundle/Resources/js/*' %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
{% endblock %}

{#{% block stylesheets %}
    {{ parent() }}
    {% stylesheets '@BXTRAdminBundle/Resources/less/forms.css' %}
        <link rel="stylesheet" href="{{ asset_url }}" />
    {% endstylesheets %}
{% endblock %}#}
